<?php
/**
 * Created by PhpStorm.
 * User: stc17
 * Date: 2020/3/2
 * Time: 14:43
 */
use \SwoStar\Foundation\Application;
use SwoStar\Console\Input;

if(!function_exists('app')){

    function app($a=null)
    {
        if(empty($a))
        {
            return Application::getInstance();
        }
        return Application::getInstance()->make($a);
    }


}

if (!function_exists('dd')) {
    /**
     * 六星教育 @shineyork老师
     * @param  [type] $a [description]
     * @return Application
     */
    function dd($message, $description = null)
    {
        Input::info($message, $description);
    }
}

if(!function_exists('p')) {
    function p($a)
    {
        echo "<pre>";
        print_r($a);
        echo "</pre>";
    }
}

